package com.bwie.service.imp;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.mapper.GoodsMapper;
import com.bwie.pojo.Goods;
import com.bwie.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public Page<Goods> pageList(Page<Goods> goodsPage, String number) {
        return goodsMapper.pageList(goodsPage,number);
    }

    @Override
    public Integer updateStatus(Integer id) {
        return goodsMapper.updateStatus(id);
    }

    @Override
    public Integer pussStatus(Integer id) {
        return goodsMapper.pussStatus(id);
    }
}
